#define _CRT_SECURE_NO_WARNINGS 1

int check_num(int num)
{
	int check = 0;
	int flag = 1;
	for (check = 2; check < num; check++)
	{
		if (num % check == 0)
		{
			flag = 0;
			break;
		}
	}
	return flag;
}